<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>WebDeploy-远程文件管理工具</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="icon" href="images/favicon.ico">
    <link rel="stylesheet" href="../lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="../css/public.css" media="all">
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>
    </div>
</div>
<script src="../lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script>
    layui.use(['form', 'table'], function () {
            table = layui.table;

        table.render({
            elem: '#currentTableId',
            toolbar: '#toolbarDemo',
            defaultToolbar: ['filter', 'exports', 'print'],
            url: "/getOperationData?type=2",
            cols: [
                [
                    {field: 'title', title: '功能', sort: true},
                    {field: 'param', title: '请求参数', sort: true},
                    {field: 'result', title: '返回参数', sort: true},
                    {field: 'execute', title: '执行结果', sort: true},
                    {field: 'userName', title: '操作人', sort: true},
                    {field: 'errorMsg', title: '异常信息', sort: true},
                    {field: 'logDate', title: '执行日期', sort: true}
                ]
            ],
            limit: 15,
            page: false,
            skin: 'line'
            , parseData: function (res) {
                return {
                    "code":0,
                    "data": res.data
                };
            }
        });

    });
</script>

</body>
</html>